createTextNode

abstract fun createTextNode(): Node

Creates and returns a Node object representing a new text node with an empty node value.

Throws

when the document is closed


abstract fun createTextNode(text: String): Node

Creates and returns a Node object representing a new text node initialized with the given text value.

Parameters

text

the node value

Throws

when the document is closed